/*
  Programa Wifis, 2010-2011
  Autor: Nilhcraiv

This file is part of Wifis.

    Wifis is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Wifis is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Wifis.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WINDOWSOS_H
#define WINDOWSOS_H

#include <QString>
#include <QVector>
#include <QByteArray>
#include <QStandardItemModel>
#include <QStandardItem>
#include <QtCore/QThread>
#include <QDebug>
class windowsos : public QThread
{
    Q_OBJECT

public:
    windowsos(QObject *parent = 0);//constructor
    ~windowsos();
    QVector <QString> vectorNetworks;//Si no se ha ejecutado run(), esto, estara vacio.
    void connectToNetwork(QString SSID,QString password);

protected:

    void run();

private:
    bool checkBSSID(QString *bssid);//Modifica bssid, si lo hace correctamente, devuelve true, si no puede,
                                   //significa que ha sido imposible obtener una direccion mac correcta y devuelve false.

    bool checkParametro(QString * parametro);
};

#endif // WINDOWSOS_H
